<template>
  <div class="person">????</div>
</template>

<script lang="ts" setup>
import { type PersonInter, type Persons } from "../src/types/index";

// let person: PersonInter = { id: "iwdfgwafbwa", name: "nnnn", age: 232 };
//泛型：
//干净的前提：在ts里面写好
let personList: Persons = [
  { id: "iwdfgwafbwa", name: "nnnn", age: 232 },
  { id: "i234234324", name: "mmmm", age: 114 },
  { id: "isfgsgseg", name: "kkkk", age: 514 },
];
</script>

<style scoped></style>
